﻿<Window x:Class="SqLiteEditor.Forms.FrmAddView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:editor="http://icsharpcode.net/sharpdevelop/avalonedit"
        Background="#FF2D3E5B" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" 
        Title="Add New View" Height="416" Width="303" 
        Icon="/SqLiteEditor;component/Resources/DataToolBar/tabel.png" ShowInTaskbar="False" Topmost="True">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="20*"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0" Background="White">
            <GroupBox Header="Information" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Height="160" Width="282">

                <Grid >
                    <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="Table Name : " VerticalAlignment="Top" Margin="10,10,0,0"/>
                    <ComboBox x:Name="cmb_Tables" HorizontalAlignment="Left"  VerticalAlignment="Top" Width="154" Margin="106,10,0,0" ItemsSource="{Binding TablesList,UpdateSourceTrigger=PropertyChanged}" SelectionChanged="cmb_Tables_SelectionChanged"/>
                    <TextBlock HorizontalAlignment="Left"  TextWrapping="Wrap" Text="View Name : " VerticalAlignment="Top" Margin="10,42,0,0"/>
                    <TextBox x:Name="txt_ViewName" HorizontalAlignment="Left" Height="23" Margin="106,42,0,0" TextWrapping="Wrap" Text="Idv_View_" VerticalAlignment="Top" Width="154"/>
                    <Button x:Name="btnCreateIndexQuery" Content="Generate Qury" HorizontalAlignment="Left" Margin="10,87,0,0" VerticalAlignment="Top" Width="250" Click="btnCreateIndexQuery_Click"/>
                </Grid>
            </GroupBox>
        </Grid>




        <GridSplitter Grid.Row="1" Background="Black" HorizontalAlignment="Stretch" VerticalAlignment="Center" Height="7" ></GridSplitter>

        <editor:TextEditor Name="DMLEdittor" Grid.Row="2" FontFamily="Consolas" ShowLineNumbers="True" WordWrap="True" Grid.RowSpan="1" Margin="2" IsReadOnly="False" />
        <Button Name="btnOk" Content="Ok" HorizontalAlignment="Left" Margin="212,3,0,0" Grid.Row="3" VerticalAlignment="Top" Width="75" Click="btnOk_Click"/>
        <Button Name="btnCancel" Content="Cancel" HorizontalAlignment="Left" Margin="132,3,0,0" Grid.Row="3" VerticalAlignment="Top" Width="75" IsCancel="True" Click="btnCancel_Click"/>

    </Grid>
</Window>
